package org.lds.hotkey.client.autoconfigure.controller;

import org.lds.hotkey.client.autoconfigure.hotkey.receive.ReceiveHotKeyService;
import org.lds.hotkey.common.model.dto.ResultDTO;
import org.lds.hotkey.console.remote.model.BatchReceiveHotkeyRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/remote/hotkey")
public class ReceiveHotKeyController {

    @Autowired
    private ReceiveHotKeyService receiveHotKeyService;

    @PostMapping("/receive")
    public ResultDTO receiveHotkey(@RequestBody BatchReceiveHotkeyRequest request) {
        return receiveHotKeyService.receiveHotkey(request);
    }
}
